mod init_data_structures;
mod new;
mod process_connector;

use super::super::*;
use crate::tests::fixtures::{RANDOM_STRINGS, RANDOM_STRINGS_TWO, RANDOM_TILES, RANDOM_TILE_TYPE};
use crate::tiling::tiles::tile_list::*;

#[test]
fn test_tile_list_raw_initialization() {
    let tile_list: TileList = TileList {
        tiles: RANDOM_TILES.iter().cloned().collect(),
        horizontal_connector_names: RANDOM_STRINGS.clone(),
        vertical_connector_names: RANDOM_STRINGS_TWO.clone(),
        tile_type: RANDOM_TILE_TYPE.clone(),
        // tile_size: RANDOM_COORDINATES[0],
    };

    assert_eq!(
        RANDOM_TILES.iter().cloned().collect::<Vec<Tile>>(),
        tile_list.tiles
    );
    assert_eq!(RANDOM_STRINGS.clone(), tile_list.horizontal_connector_names);
    assert_eq!(
        RANDOM_STRINGS_TWO.clone(),
        tile_list.vertical_connector_names
    );
    assert_eq!(RANDOM_TILE_TYPE.clone(), tile_list.tile_type);
    // assert_eq!(RANDOM_COORDINATES[0], tile_list.tile_size);
}
